<?php
/**
 * Created by PhpStorm.
 * User: zhangjian37
 * Date: 2016/9/11
 * Time: 17:42
 */

$RootDir = $_SERVER['DOCUMENT_ROOT'];
include $RootDir.'/utils/mysql/MysqlUtils.php';
include $RootDir.'/utils/CommonConstant.php';
include $RootDir.'/utils/FileUtils.php';

//通过user_id得到用户手机号，用户
$user_id = $_POST['user_id'];

$conn = conn_mysql();

$query = "select phone_num,umail from user_info where user_id = '$user_id'";
$result = queryRecord($query,$conn);
while ($row=mysql_fetch_array($result, MYSQL_ASSOC)) {
    $phone_num = $row['phone_num'];
    $umail = $row['umail'];
    break;
}
if ($phone_num == null)die("err: 查询出错");

echo $phone_num . ',' . $umail;

mysql_close($conn);

